package com.epoint.mobileoa.personalized.epointcompany.ui.carnumberquery;

import java.net.URLEncoder;
import java.util.Map;

import android.os.Message;

import com.epoint.mobileoa.bizlogic.NewTask;
import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.tools.HttpUtil;

/**
 * @author liyc
 * @time 2013-2-19 下午2:00:41
 * @annotation
 */

public class CarNumberQueryTask extends NewTask {

	public CarNumberQueryTask(SuperView sv, int taskID,
			Map<String, Object> param, String progressMsg,
			int progressDialogType) {
		super(sv, taskID, param, progressMsg, progressDialogType);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void exectue(Message mess) throws Exception {
		// TODO Auto-generated method stub
		String condition = getParam().get("condition").toString();
		condition = URLEncoder.encode(condition);
		String seamurl = fp.generateMsiUrl("com.epoint.mobileoa.modules.personalized.CompanyCommon;CarNumberQuery",condition);
		String bs = HttpUtil.getHttpBack(seamurl);
		setMessageToRefreshUI(mess, bs);
	}

}
